package com.itwrl.sfms.service.impl;

import com.itwrl.sfms.entity.TUser;
import com.itwrl.sfms.mapper.TUserMapper;
import com.itwrl.sfms.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IUserServiceImpl implements IUserService {

    @Autowired
    TUserMapper userMapper;

    @Override
    public int insert(TUser record) {
        return userMapper.insert(record);
    }

    @Override
    public TUser selectByUsername(String username) {
        return userMapper.selectByUsername(username);
    }
}
